package me.hys.service.chat;

import me.hys.base.ApiResult;
import me.hys.base.PageQuery;
import me.hys.entity.doctor.AnswerEntity;

/**
 * Author: @author HYS . <br>
 * Date: 2015-10-6 上午1:09:38 . <br>
 * Function:
 */
public interface IChatManager {
	/**
	 * @Title : register
	 * @Description : 注册用户
	 */
	ApiResult register(String userid, String mobile, String nickname);

	/**
	 * @Title : delete
	 * @Description : 删除用户
	 */
	ApiResult delete(String userid);

	/**
	 * @Title : modifyPassword
	 * @Description : 修改密码
	 */
	ApiResult modifyPassword(String userid, String mobile);

	/**
	 * @Title : modifyNickname
	 * @Description : 修改昵称
	 */
	ApiResult modifyNickname(String userid, String nickname);

	/**
	 * @Title : login
	 * @Description : 用户登录
	 */
	ApiResult login(String userid, String mobile);

	/**
	 * @Title : sendMsg
	 * @Description : 给用户发送一条消息
	 */
	ApiResult sendMsg(String msg, String from, String target);

	/**
	 * @Title : findMsgPage
	 * @Description : 获取历史消息记录
	 */
	PageQuery<AnswerEntity> findMsgPage(PageQuery<AnswerEntity> page);

	/**
	 * @Title : sendOpenMsg
	 * @Description : 透传消息
	 */
	void sendOpenMsg(String action, String from, String[] target);
}
